package model

import "time"

type Contact struct {
	Id       int64     `xorm:"pk autoincr bigint(20)" form:"id" json:"id"`
	OwnerId  int64     `xorm:"bigint(20) 'owner_id'" form:"ownerId" json:"ownerId"`
	DstId    int64     `xorm:"bigint(20) 'dst_id'" form:"dstId" json:"dstId"`
	Type     int       `xorm:"int(11)" form:"type" json:"type"`
	Memo     string    `xorm:"varchar(120)" form:"memo" json:"memo"` // 备忘录
	CreateAt time.Time `xorm:"datetime 'create_at'" form:"createAt" json:"createAt"`
}

const (
	TYPE_USER      = 0x01
	TYPE_COMMUNITY = 0x02
)
